﻿using LVYAN.Model.AutoMation;
using LVYAN.Utils;
using System.Collections.Generic;
using System.Linq;
namespace LVYAN.Service
{
    public class API
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<APIModel> GetAPIList()
        {
            return JsonToModelService.GetModelByPath<List<APIModel>>($"Config/API.json");
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public APIModel GetAPIModel()
        {
            return GetAPIList().FirstOrDefault();
        }
    }
}
